package chat.view.menus;

import chat.clients.XmppClient;
import chat.clients.gtalk.GTalkClient;

import java.awt.*;

public class LogoutMenuItem extends ClientMenuItem {
    /**
     *
     */
    private static final long serialVersionUID = -7517729380438963313L;

    public LogoutMenuItem(XmppClient client) throws HeadlessException {
        super(client, "Logout", Type.ONLINE, e -> {
            GTalkClient.INSTANCE.disconnect();
        });
    }
}
